home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / CutPaste.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  6.2 KB  |  187 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: CutPaste.h,v $ $Revision: 1.23 $ $Date: 92/05/14 12:48:58 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. #ifndef _XmCutPaste_h
  11. #define _XmCutPaste_h
  12.  
  13. #include <Xm/Xm.h>
  14.  
  15. #if defined(__cplusplus) || defined(c_plusplus)
  16. extern "C" {
  17. #endif
  18.  
  19. /* XmClipboard return status definitions */
  20.  
  21. #define XmClipboardFail         0
  22. #define XmClipboardSuccess      1
  23. #define XmClipboardTruncate     2
  24. #define XmClipboardLocked       4
  25. #define XmClipboardBadFormat    5
  26. #define XmClipboardNoData       6
  27.  
  28. /* XmClipboard pre-1.2 definitions */
  29.  
  30. #define ClipboardFail         0
  31. #define ClipboardSuccess      1 
  32. #define ClipboardTruncate     2
  33. #define ClipboardLocked       4
  34. #define ClipboardBadFormat       5
  35. #define ClipboardNoData       6
  36.  
  37. typedef struct {
  38.     long DataId;
  39.     long PrivateId;
  40. } XmClipboardPendingRec, *XmClipboardPendingList;
  41.  
  42. #ifdef _NO_PROTO
  43. typedef void (*XmCutPasteProc)() ;
  44. typedef void (*VoidProc)() ;
  45. #else
  46. typedef void (*XmCutPasteProc)( Widget w, long * data_id, long * private_id,
  47.                                     int * reason) ;
  48. typedef void (*VoidProc)( Widget w, int * data_id, int * private_id,
  49.                                     int * reason) ;
  50. #endif
  51.  
  52.  
  53. /********    Public Function Declarations    ********/
  54. #ifdef _NO_PROTO
  55.  
  56. extern int XmClipboardBeginCopy() ;
  57. extern int XmClipboardStartCopy() ;
  58. extern int XmClipboardCopy() ;
  59. extern int XmClipboardEndCopy() ;
  60. extern int XmClipboardCancelCopy() ;
  61. extern int XmClipboardWithdrawFormat() ;
  62. extern int XmClipboardCopyByName() ;
  63. extern int XmClipboardUndoCopy() ;
  64. extern int XmClipboardLock() ;
  65. extern int XmClipboardUnlock() ;
  66. extern int XmClipboardStartRetrieve() ;
  67. extern int XmClipboardEndRetrieve() ;
  68. extern int XmClipboardRetrieve() ;
  69. extern int XmClipboardInquireCount() ;
  70. extern int XmClipboardInquireFormat() ;
  71. extern int XmClipboardInquireLength() ;
  72. extern int XmClipboardInquirePendingItems() ;
  73. extern int XmClipboardRegisterFormat() ;
  74.  
  75. #else
  76.  
  77. extern int XmClipboardBeginCopy( 
  78.                         Display *display,
  79.                         Window window,
  80.                         XmString label,
  81.                         Widget widget,
  82.                         VoidProc callback,
  83.                         long *itemid) ;
  84. extern int XmClipboardStartCopy( 
  85.                         Display *display,
  86.                         Window window,
  87.                         XmString label,
  88.                         Time timestamp,
  89.                         Widget widget,
  90.                         XmCutPasteProc callback,
  91.                         long *itemid) ;
  92. extern int XmClipboardCopy( 
  93.                         Display *display,
  94.                         Window window,
  95.                         long itemid,
  96.                         char *format,
  97.                         XtPointer buffer,
  98.                         unsigned long length,
  99.                         long private_id,
  100.                         long *dataid) ;
  101. extern int XmClipboardEndCopy( 
  102.                         Display *display,
  103.                         Window window,
  104.                         long itemid) ;
  105. extern int XmClipboardCancelCopy( 
  106.                         Display *display,
  107.                         Window window,
  108.                         long itemid) ;
  109. extern int XmClipboardWithdrawFormat( 
  110.                         Display *display,
  111.                         Window window,
  112.                         long data) ;
  113. extern int XmClipboardCopyByName( 
  114.                         Display *display,
  115.                         Window window,
  116.                         long data,
  117.                         XtPointer buffer,
  118.                         unsigned long length,
  119.                         long private_id) ;
  120. extern int XmClipboardUndoCopy( 
  121.                         Display *display,
  122.                         Window window) ;
  123. extern int XmClipboardLock( 
  124.                         Display *display,
  125.                         Window window) ;
  126. extern int XmClipboardUnlock( 
  127.                         Display *display,
  128.                         Window window,
  129. #if NeedWidePrototypes
  130.                         int all_levels) ;
  131. #else
  132.                         Boolean all_levels) ;
  133. #endif /* NeedWidePrototypes */
  134. extern int XmClipboardStartRetrieve( 
  135.                         Display *display,
  136.                         Window window,
  137.                         Time timestamp) ;
  138. extern int XmClipboardEndRetrieve( 
  139.                         Display *display,
  140.                         Window window) ;
  141. extern int XmClipboardRetrieve( 
  142.                         Display *display,
  143.                         Window window,
  144.                         char *format,
  145.                         XtPointer buffer,
  146.                         unsigned long length,
  147.                         unsigned long *outlength,
  148.                         long *private_id) ;
  149. extern int XmClipboardInquireCount( 
  150.                         Display *display,
  151.                         Window window,
  152.                         int *count,
  153.                         unsigned long *maxlength) ;
  154. extern int XmClipboardInquireFormat( 
  155.                         Display *display,
  156.                         Window window,
  157.                         int n,
  158.                         XtPointer buffer,
  159.                         unsigned long bufferlength,
  160.                         unsigned long *outlength) ;
  161. extern int XmClipboardInquireLength( 
  162.                         Display *display,
  163.                         Window window,
  164.                         char *format,
  165.                         unsigned long *length) ;
  166. extern int XmClipboardInquirePendingItems( 
  167.                         Display *display,
  168.                         Window window,
  169.                         char *format,
  170.                         XmClipboardPendingList *list,
  171.                         unsigned long *count) ;
  172. extern int XmClipboardRegisterFormat( 
  173.                         Display *display,
  174.                         char *format_name,
  175.                         int format_length) ;
  176.  
  177. #endif /* _NO_PROTO */
  178. /********    End Public Function Declarations    ********/
  179.  
  180.  
  181. #if defined(__cplusplus) || defined(c_plusplus)
  182. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  183. #endif
  184.  
  185. #endif /* _XmCutPaste_h */
  186. /* DON'T ADD ANYTHING AFTER THIS #endif */
  187.